package com.cs.proxy;

/**
 * @author Sam.Lee E-mail:lishanman2007@163.com
 * @version Created：Sep 1, 2011 2:23:53 PM
 */
public class Main {
	public static void main(String[] args) {
		DynamicProxy dynamicProxy = new DynamicProxy();
		OrderApi orderApi = dynamicProxy.getProxyInstance(new Order("脑白金", 20,
				"sam"));
		orderApi.setProductName("黄金搭档", "lsm");
		System.out.println(orderApi);

		orderApi.setProductNum(10, "sam");
		System.out.println(orderApi);
	}
}
